<!DOCTYPE html>
<html class="has-navbar-fixed-top">
<head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
<title>HANZO</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.5/outdatedbrowser.min.css">


<meta name="description" content="鬼王, HANZO, THRAEX">



<meta name="keywords" content="鬼王, O70, HANZO, THRAEX">



    <meta name="description" content="鬼王, HANZO, THRAEX">
<meta name="keywords" content="鬼王, O70, HANZO, THRAEX">
<meta property="og:type" content="website">
<meta property="og:title" content="HANZO">
<meta property="og:url" content="http://yoursite.com/page/2/index.html">
<meta property="og:site_name" content="HANZO">
<meta property="og:description" content="鬼王, HANZO, THRAEX">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="HANZO">
<meta name="twitter:description" content="鬼王, HANZO, THRAEX">





<link rel="icon" href="/images/favicon.ico">


<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ovo|Source+Code+Pro">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css">


<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.8/css/lightgallery.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/justifiedGallery/3.6.5/css/justifiedGallery.min.css">


<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">

<link rel="stylesheet" href="/css/style.css">

<script defer src="//use.fontawesome.com/releases/v5.0.8/js/all.js"></script>



</head>
<body>
    
<nav class="navbar is-transparent is-fixed-top navbar-main" role="navigation" aria-label="main navigation">
    <div class="container">
        <div class="navbar-brand">
            <a class="navbar-item navbar-logo" href="/">
                
                    
                    HANZO
                    
                
            </a>
            <div class="navbar-burger">
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
        
        <div class="navbar-menu navbar-start">
            
            <a class="navbar-item " href="/categories/Technology">Technology</a>
            
            <a class="navbar-item " href="/categories/Life">Life</a>
            
            <a class="navbar-item " href="/archives">Archives</a>
            
            <a class="navbar-item " href="/about">About</a>
            
            <a class="navbar-item " href="/main">Main</a>
            
        </div>
        
        <div class="navbar-menu navbar-end">
            
            <a class="navbar-item search" title="Search" href="javascript:;">
                <i class="fas fa-search"></i>
            </a>
            
            
            
            <a class="navbar-item" title="GitHub" href="https://github.com/O70">
                
                <i class="fab fa-github"></i>
                
            </a>
               
            
        </div>
    </div>
</nav>

    <section class="section">
    <div class="container">
    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/domain.html" itemprop="url">Domain</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-19T08:00:00.000Z" itemprop="datePublished">Jun 19 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            a few seconds read (About 28 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <table>
<thead>
<tr>
<th>Domain</th>
<th>Ali</th>
<th>Tencent</th>
<th>Baidu</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>thraex.com.cn</code></td>
<td>19/370/39</td>
<td>31/346/35</td>
<td>26/341/35</td>
</tr>
<tr>
<td><code>thraex.org.cn</code></td>
<td>19/370/39</td>
<td>X</td>
<td>28/343/35</td>
</tr>
<tr>
<td><code>thraex.net.cn</code></td>
<td>19/370/39</td>
<td>31/346/35</td>
<td>28/370/38</td>
</tr>
<tr>
<td><code>thraex.top</code></td>
<td>9/270/26/260</td>
<td>X</td>
<td>9/243/26/260</td>
</tr>
<tr>
<td><code>thraex.info</code></td>
<td>16/781/85</td>
<td>72/873/89</td>
<td>18/918/100</td>
</tr>
<tr>
<td><code>thraex.xyz</code></td>
<td>6/627</td>
<td>11/632/69</td>
<td>12/642/70</td>
</tr>
<tr>
<td><code>thraex.wang</code></td>
<td>29/389/40</td>
<td>21/282/29</td>
<td>42/582/60</td>
</tr>
</tbody>
</table>
<p><code>thraex.top</code>, 20 year:</p>
<ul>
<li>Ali: <code>270 + 26*10 =  530</code></li>
<li>Baidu: <code>243 + 26*10 = 503</code></li>
</ul>
<p>9 + 9 <em> 26 = 243<br>67 + 7 </em> 26 = 249<br>125 + 5 * 26 = 255</p>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/nginx-test.html" itemprop="url">Nginx Test</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-18T08:00:00.000Z" itemprop="datePublished">Jun 18 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            6 minutes read (About 886 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <blockquote>
<p>ECS for Aliyun, CentOS 7.2 64Bit</p>
</blockquote>
<h2 id="Download"><a href="#Download" class="headerlink" title="Download"></a>Download</h2><ul>
<li><p>Download</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="hljs-built_in">cd</span> ~/Downloads</span><br><span class="line"></span><br><span class="line">$ wget http://nginx.org/download/nginx-1.16.0.tar.gz</span><br><span class="line">$ wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz</span><br><span class="line">$ wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.94/bin/apache-tomcat-7.0.94.tar.gz</span><br><span class="line">$ wget https://dev.tencent.com/u/THRAEX/p/Books/git/raw/master/jdk-8u211-linux-x64.tar.gz</span><br></pre></td></tr></table></figure>
</li>
<li><p>Extract</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="hljs-built_in">cd</span> ~/Workspace/Kits</span><br><span class="line"></span><br><span class="line">$ tar -xzf ~/Downloads/nginx-1.16.0.tar.gz</span><br><span class="line">$ tar -xJf ~/Downloads/node-v10.16.0-linux-x64.tar.xz</span><br><span class="line">$ tar -xzf ~/Downloads/apache-tomcat-7.0.94.tar.gz</span><br><span class="line">$ tar -xzf ~/Downloads/jdk-8u211-linux-x64.tar.gz</span><br></pre></td></tr></table></figure>
</li>
<li><p>Rename</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ mv apache-tomcat-7.0.94/ tomcat7</span><br><span class="line">$ mv nginx-1.16.0/ nginx</span><br><span class="line">$ mv node-v10.16.0-linux-x64/ node</span><br><span class="line">$ mv jdk1.8.0_211/ jdk1.8</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="Install"><a href="#Install" class="headerlink" title="Install"></a>Install</h2><ul>
<li><p>JDK/Tomcat7(Environment Variables)</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br></pre></td><td class="code"><pre><span class="line">$ vim ~/.bash_profile</span><br><span class="line"></span><br><span class="line"><span class="hljs-comment"># User specific environment and startup programs</span></span><br><span class="line"></span><br><span class="line"><span class="hljs-comment">#########################</span></span><br><span class="line">PATH=<span class="hljs-variable">$PATH</span>:<span class="hljs-variable">$HOME</span>/bin</span><br><span class="line"></span><br><span class="line">KITS_HOME=~/Workspace/Kits</span><br><span class="line"><span class="hljs-built_in">export</span> JAVA_HOME=<span class="hljs-variable">$KITS_HOME</span>/jdk1.8</span><br><span class="line"><span class="hljs-built_in">export</span> CLASSPATH=.:<span class="hljs-variable">$JAVA_HOME</span>/jre/lib/rt.jar:<span class="hljs-variable">$JAVA_HOME</span>/lib/dt.jar:<span class="hljs-variable">$JAVA_HOME</span>/lib/tools.jar</span><br><span class="line"><span class="hljs-built_in">export</span> CATALINA_BASE=<span class="hljs-variable">$KITS_HOME</span>/tomcat7</span><br><span class="line"><span class="hljs-built_in">export</span> CATALINA_HOME=<span class="hljs-variable">$KITS_HOME</span>/tomcat7</span><br><span class="line">PATH=<span class="hljs-variable">$PATH</span>:<span class="hljs-variable">$JAVA_HOME</span>/bin:<span class="hljs-variable">$CATALINA_HOME</span>/lib:<span class="hljs-variable">$CATALINA_HOME</span>/bin:<span class="hljs-variable">$KITS_HOME</span>/node/bin</span><br><span class="line"></span><br><span class="line"><span class="hljs-built_in">export</span> PATH</span><br><span class="line"><span class="hljs-comment">#########################</span></span><br><span class="line"></span><br><span class="line">$ . ~/.bash_profile</span><br><span class="line">$ <span class="hljs-built_in">which</span> java startup.sh node</span><br><span class="line">/root/Workspace/Kits/jdk1.8/bin/java</span><br><span class="line">/root/Workspace/Kits/tomcat7/bin/startup.sh</span><br><span class="line">/root/Workspace/Kits/node/bin/node</span><br><span class="line"></span><br><span class="line">$ whereis java startup.sh node</span><br><span class="line">java: /root/Workspace/Kits/jdk1.8/bin/java</span><br><span class="line">startup: /root/Workspace/Kits/tomcat7/bin/startup.bat /root/Workspace/Kits/tomcat7/bin/startup.sh</span><br><span class="line">node: /root/Workspace/Kits/node/bin/node</span><br><span class="line"></span><br><span class="line">$ java -version ; version.sh ; node -v</span><br></pre></td></tr></table></figure>
</li>
<li><p>Nginx(make), <a href="http://nginx.org/en/docs/configure.html" target="_blank" rel="noopener">http://nginx.org/en/docs/configure.html</a></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="hljs-built_in">cd</span> ~/Workspace/Kits/nginx</span><br><span class="line">$ ./configure</span><br></pre></td></tr></table></figure>
<ul>
<li><p>Questions:</p>
<ul>
<li><p><code>./configure: error: the HTTP rewrite module requires the PCRE library.</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ yum -y install pcre-devel</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>./configure: error: the HTTP gzip module requires the zlib library.</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ yum install -y zlib-devel</span><br></pre></td></tr></table></figure>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line">$ ./configure</span><br><span class="line">...</span><br><span class="line">Configuration summary</span><br><span class="line">  + using system PCRE library</span><br><span class="line">  + OpenSSL library is not used</span><br><span class="line">  + using system zlib library</span><br><span class="line"></span><br><span class="line">  nginx path prefix: <span class="hljs-string">"/usr/local/nginx"</span></span><br><span class="line">  nginx binary file: <span class="hljs-string">"/usr/local/nginx/sbin/nginx"</span></span><br><span class="line">  nginx modules path: <span class="hljs-string">"/usr/local/nginx/modules"</span></span><br><span class="line">  nginx configuration prefix: <span class="hljs-string">"/usr/local/nginx/conf"</span></span><br><span class="line">  nginx configuration file: <span class="hljs-string">"/usr/local/nginx/conf/nginx.conf"</span></span><br><span class="line">  nginx pid file: <span class="hljs-string">"/usr/local/nginx/logs/nginx.pid"</span></span><br><span class="line">  nginx error <span class="hljs-built_in">log</span> file: <span class="hljs-string">"/usr/local/nginx/logs/error.log"</span></span><br><span class="line">  nginx http access <span class="hljs-built_in">log</span> file: <span class="hljs-string">"/usr/local/nginx/logs/access.log"</span></span><br><span class="line">  nginx http client request body temporary files: <span class="hljs-string">"client_body_temp"</span></span><br><span class="line">  nginx http proxy temporary files: <span class="hljs-string">"proxy_temp"</span></span><br><span class="line">  nginx http fastcgi temporary files: <span class="hljs-string">"fastcgi_temp"</span></span><br><span class="line">  nginx http uwsgi temporary files: <span class="hljs-string">"uwsgi_temp"</span></span><br><span class="line">  nginx http scgi temporary files: <span class="hljs-string">"scgi_temp"</span></span><br><span class="line"></span><br><span class="line">$ make</span><br><span class="line">$ make install</span><br></pre></td></tr></table></figure>
<blockquote>
<p><strong>Important</strong></p>
<p>安装完成后添加环境变量<code>/usr/local/nginx/sbin/</code><br><figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ vim ~/.bash_profile</span><br><span class="line">PATH=<span class="hljs-variable">$PATH</span>:<span class="hljs-variable">$JAVA_HOME</span>/bin:<span class="hljs-variable">$CATALINA_HOME</span>/lib:<span class="hljs-variable">$CATALINA_HOME</span>/bin:<span class="hljs-variable">$KITS_HOME</span>/node/bin:/usr/<span class="hljs-built_in">local</span>/nginx/sbin/</span><br></pre></td></tr></table></figure></p>
</blockquote>
<ul>
<li><p>Git</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ yum install git</span><br></pre></td></tr></table></figure>
</li>
<li><p>Nmap</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ yum install nmap</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="Run"><a href="#Run" class="headerlink" title="Run"></a>Run</h2><h3 id="Tomcat7"><a href="#Tomcat7" class="headerlink" title="Tomcat7"></a>Tomcat7</h3><ul>
<li><strong>Start</strong></li>
</ul>
<ol>
<li><p><code>startup.sh</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ startup.sh</span><br><span class="line">Using CATALINA_BASE:   /root/Workspace/Kits/tomcat7</span><br><span class="line">Using CATALINA_HOME:   /root/Workspace/Kits/tomcat7</span><br><span class="line">Using CATALINA_TMPDIR: /root/Workspace/Kits/tomcat7/temp</span><br><span class="line">Using JRE_HOME:        /root/Workspace/Kits/jdk1.8</span><br><span class="line">Using CLASSPATH:       /root/Workspace/Kits/tomcat7/bin/bootstrap.jar:/root/Workspace/Kits/tomcat7/bin/tomcat-juli.jar</span><br><span class="line">Tomcat started.</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>catalina.sh run</code>(推荐)</p>
</li>
</ol>
<blockquote>
<p><strong>Note</strong></p>
<p>本地自测: <code>curl http://localhost:8080</code></p>
<p>公网访问去要配置 <strong>安全组规则</strong></p>
<ol>
<li>点击 <strong><code>添加安全组规则</code></strong></li>
<li>端口范围：<code>8080/8080</code></li>
<li>授权对象：<code>0.0.0.0/0</code></li>
</ol>
</blockquote>
<ul>
<li><strong>Stop</strong></li>
</ul>
<ol>
<li><p><code>shutdown.sh</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ shutdown.sh</span><br><span class="line">Using CATALINA_BASE:   /root/Workspace/Kits/tomcat7</span><br><span class="line">Using CATALINA_HOME:   /root/Workspace/Kits/tomcat7</span><br><span class="line">Using CATALINA_TMPDIR: /root/Workspace/Kits/tomcat7/temp</span><br><span class="line">Using JRE_HOME:        /root/Workspace/Kits/jdk1.8</span><br><span class="line">Using CLASSPATH:       /root/Workspace/Kits/tomcat7/bin/bootstrap.jar:/root/Workspace/Kits/tomcat7/bin/tomcat-juli.jar</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>catalina.sh stop</code></p>
</li>
<li><code>kill</code><figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ ps -ax | grep tomcat</span><br><span class="line">$ <span class="hljs-built_in">kill</span> &lt;PID&gt;</span><br></pre></td></tr></table></figure>
</li>
</ol>
<blockquote>
<p><strong>Question</strong><br>启动时卡在“ Deploying web application directory ”很久</p>
<p><strong>Why</strong><br>linux或者部分unix系统提供随机数设备是/dev/random 和/dev/urandom，其中urandom安全性没有random高，但random需要时间间隔生成随机数，jdk默认调用random，从而生成随机数时间间隔长从而到时Tomcat启动速度慢</p>
<p><strong>Solution</strong><br><figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ vim ~/Workspace/Kits/jdk1.8/jre/lib/security/java.security</span><br><span class="line">...</span><br><span class="line"># HANZO ADD</span><br><span class="line"># securerandom.source=file:/dev/random</span><br><span class="line">securerandom.source=file:/dev/./urandom</span><br><span class="line">...</span><br></pre></td></tr></table></figure></p>
</blockquote>
<h3 id="Nginx"><a href="#Nginx" class="headerlink" title="Nginx"></a>Nginx</h3><p><strong>需要将<code>/usr/local/nginx/sbin/</code>添加至环境变量</strong></p>
<ul>
<li><strong>Start</strong>: <code>$ nginx</code></li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>本地自测: <code>curl http://localhost</code></p>
<p>公网访问去要配置 <strong>安全组规则</strong></p>
<ol>
<li>点击 <strong><code>添加安全组规则</code></strong></li>
<li>端口范围：<code>8080/8080</code></li>
<li>授权对象：<code>0.0.0.0/0</code></li>
</ol>
</blockquote>
<ul>
<li><code>nginx -s signal</code><ul>
<li><code>stop</code> — fast shutdown</li>
<li><code>quit</code> — graceful shutdown</li>
<li><code>reload</code> — reloading the configuration file</li>
<li><code>reopen</code> — reopening the log files</li>
</ul>
</li>
</ul>
<h2 id="Domain"><a href="#Domain" class="headerlink" title="Domain"></a>Domain</h2><p>添加 <strong>解析记录</strong></p>
<ul>
<li>记录类型: <code>A</code></li>
<li>主机记录: <code>@</code> / <code>www</code>分别对应: <a href="http://hanzo.com.cn" target="_blank" rel="noopener">http://hanzo.com.cn</a> / <a href="http://www.hanzo.com.cn" target="_blank" rel="noopener">http://www.hanzo.com.cn</a></li>
<li>记录值: <strong>公网IP</strong></li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>因备案原因, 主机记录使用<code>www</code></p>
</blockquote>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/install-python-and-pip.html" itemprop="url">Install Python and pip</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-17T05:40:00.000Z" itemprop="datePublished">Jun 17 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            12 minutes read (About 1757 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="On-Windows10"><a href="#On-Windows10" class="headerlink" title="On Windows10"></a>On Windows10</h2><h3 id="Install-Python3"><a href="#Install-Python3" class="headerlink" title="Install Python3"></a>Install Python3</h3><ol>
<li><p>Download <a href="https://www.python.org/downloads/release/python-370/" target="_blank" rel="noopener">Python 3.7.0</a>, choose <strong>Windows x86-64 embeddable zip file</strong></p>
</li>
<li><p>解压至<code>C:\Workspace\Kits\python3.7</code></p>
</li>
<li><p>配置环境变量<code>%KITS_HOME%\python3.7</code></p>
</li>
<li><p>Open terminal: <code>python -V</code> or <code>python</code></p>
</li>
</ol>
<p><strong>Questions:</strong></p>
<ul>
<li>输入<code>help</code>/<code>exit()</code>报以下错误<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">&gt;&gt;&gt; help</span><br><span class="line">Traceback (most recent call last):</span><br><span class="line">  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</span><br><span class="line">NameError: name &apos;help&apos; is not defined</span><br><span class="line"></span><br><span class="line">&gt;&gt;&gt; exit()</span><br><span class="line">Traceback (most recent call last):</span><br><span class="line">  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</span><br><span class="line">NameError: name &apos;exit&apos; is not defined</span><br></pre></td></tr></table></figure>
</li>
</ul>
<p><strong>打开<code>python37._pth</code>文件，去掉<code># import site</code>的注释，然后保存。上述问题解决。</strong></p>
<p><strong><code>python37._pth</code></strong>:<br><figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">python37.zip</span><br><span class="line">.</span><br><span class="line"></span><br><span class="line"># 与import site作用相同</span><br><span class="line"># Lib\site-packages</span><br><span class="line"></span><br><span class="line"># Uncomment to run site.main() automatically</span><br><span class="line">import site</span><br></pre></td></tr></table></figure></p>
<blockquote>
<p>开启<code>import site</code>很重要，否则接下来安装<code>pip</code>也会失败。</p>
</blockquote>
<h3 id="Install-pip"><a href="#Install-pip" class="headerlink" title="Install pip"></a>Install pip</h3><blockquote>
<p><a href="https://pip.pypa.io/en/stable/installing/" target="_blank" rel="noopener">Do I need to install pip?</a></p>
</blockquote>
<ol>
<li><p>Download and install</p>
<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py</span><br><span class="line"></span><br><span class="line">python get-pip.py</span><br></pre></td></tr></table></figure>
</li>
<li><p>配置环境变量<code>%KITS_HOME%\python3.7\Scripts</code></p>
</li>
<li><p>New terminal</p>
<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">pip</span><br><span class="line"></span><br><span class="line">Traceback (most recent call last):</span><br><span class="line">  File &quot;runpy.py&quot;, line 193, in _run_module_as_main</span><br><span class="line">  File &quot;runpy.py&quot;, line 85, in _run_code</span><br><span class="line">  File &quot;C:\Workspace\Kits\python3.7\Scripts\pip.exe\__main__.py&quot;, line 5, in &lt;module&gt;</span><br><span class="line">ModuleNotFoundError: No module named &apos;pip&apos;</span><br></pre></td></tr></table></figure>
</li>
</ol>
<p><strong>在<code>python37._pth</code>中去掉<code># import site</code>的注释或添加<code>Lib\site-packages</code></strong></p>
<h3 id="查找模块"><a href="#查找模块" class="headerlink" title="查找模块"></a><a href="https://docs.python.org/zh-cn/3/using/windows.html?highlight=_pth#finding-modules" target="_blank" rel="noopener">查找模块</a></h3><p><strong><code>python37._pth</code> to <code>python37._pth_bak</code></strong></p>
<p>Python通常将其库（以及您的site-packages文件夹）存储在安装目录中。因此，如果您已将Python安装到<code>C:\Python\</code>，则默认库将驻留在 <code>C:\Python\Lib\</code>中，第三方模块存储在<code>C:\Python\Lib\site-packages\</code>。</p>
<p>若要完全覆盖<code>sys.path</code>，请创建与DLL(<code>python37._pth</code>)或可执行文件(<code>python._pth</code>)同名的<code>._pth</code>文件，并为要添加的每个路径指定一行<code>sys.path</code>。基于DLL名称的文件覆盖基于可执行文件的文件，如果需要，可以为加载运行时的任何程序限制路径。</p>
<p>当文件存在时，将忽略所有注册表和环境变量，启用隔离模式，并且：除非文件中的一行指定<code>import site</code>，否则不会导入<code>site</code>。以<code>＃</code>开头的空白路径和行将被忽略。每个路径可以是绝对的或相对于文件的位置。不允许使用除<code>site</code>以外的导入语句，并且不能指定任意代码。</p>
<p>请注意，当指定<code>import site</code>时，<code>.pth</code>文件（没有前导下划线）将由<code>site</code>模块正常处理。</p>
<p>当找不到<code>._pth</code>文件时，<code>sys.path</code>是如何在Windows上填充的：</p>
<ul>
<li><p>在开始时，添加一个空条目，该条目对应于当前目录。</p>
</li>
<li><p>如果环境变量<code>PYTHONPATH</code>存在，如<code>环境变量</code>中所述，则接下来添加其条目。请注意，在Windows上，此变量中的路径必须用分号分隔，以区别于驱动器标识符中使用的冒号（<code>C:\</code>等）。</p>
</li>
<li><p>附加的<code>&quot;application paths&quot;</code>可以同时添加到注册表<code>HKEY_CURRENT_USER</code>和<code>HKEY_LOCAL_MACHINE</code>分支下的: <code>samp:\SOFTWARE\Python\PythonCore\{version}\PythonPath</code>中作为子键。以分号分隔的路径字符串作为默认值的子键将导致每个路径添加到<code>sys.path</code>。（请注意，所有已知的安装程序都只使用HKLM，因此HKCU通常为空。）</p>
</li>
<li><p>如果设置了环境变量<code>PYTHONHOME</code>，则将其假定为 “Python 主目录” 。否则，主Python可执行文件的路径用于定位 “landmark 文件” （<code>Lib\os.py</code>或<code>pythonXY.zip</code>）以推断 ”Python 主目录“ 。如果找到了Python主目录，则基于该文件夹将相关的子目录添加到<code>sys.path</code>（<code>Lib</code> , <code>plat-win</code>等）。否则，核心Python路径是从存储在注册表中的PythonPath构造的。</p>
</li>
<li><p>如果找不到Python Home，也没有指定<code>PYTHONPATH</code>环境变量，并且找不到注册表项，则使用具有相对条目的默认路径（例如<code>.\Lib;</code> <code>.\plat-win</code>等等）。</p>
</li>
</ul>
<p>如果在主可执行文件旁边或在可执行文件上一级的目录中找到 pyvenv.cfg 文件，则以下变体适用：</p>
<ul>
<li>如果<code>home</code> 是一个绝对路径，并且<code>PYTHONHOME</code>未设置，则在推断起始位置时使用此路径而不是主可执行文件的路径</li>
</ul>
<p>这一切的最终结果是：</p>
<ul>
<li><p>运行<code>python.exe</code>，或主Python目录中的任何其他.exe（安装版本，或直接来自PCbuild目录）时，推导出核心路径，并忽略注册表中的核心路径。始终读取注册表中的其他“应用程序路径”。</p>
</li>
<li><p>当Python托管在另一个.exe（不同的目录，通过COM嵌入等）时，将不会推断出“Python Home”，因此使用了来自注册表的核心路径。始终读取注册表中的其他“应用程序路径”。</p>
</li>
<li><p>如果Python找不到它的主目录并且没有注册表值（冻结的.exe，一些非常奇怪的安装设置），那么你会得到一条带有一些默认但相对的路径的路径。</p>
</li>
</ul>
<p>对于那些想要将Python捆绑到其应用程序或发行版中的人，以下建议将防止与其他安装冲突：</p>
<ul>
<li><p>在您的可执行文件中包含一个<code>._pth</code>文件，其中包含目录。这将忽略注册表和环境变量中列出的路径，并忽略<code>site</code>，除非列出<code>import site</code>。</p>
</li>
<li><p>如果你在自己的可执行文件中加载<code>python3.dll</code>或<code>python37.dll</code>，在<code>Py_Initialize()</code>之前，要显式调用<code>Py_SetPath()</code>或（至少）<code>Py_SetProgramName()</code></p>
</li>
<li><p>清除和/或 覆盖<code>PYTHONPATH</code>并在启动来自应用程序的<code>python.exe</code>之前设置<code>PYTHONHOME</code>。</p>
</li>
<li><p>如果您不能使用前面的建议（例如，您是一个允许人们直接运行：<code>file:python.exe</code>的分发版），请确保安装目录中存在<code>landmark</code>文件（:file:<code>Lib\os.py</code>）。（请注意，在zip文件中不会检测到该文件，但会检测到正确命名的zip文件。）</p>
</li>
</ul>
<p>这些将确保系统范围安装中的文件不会优先于与应用程序捆绑在一起的标准库的副本。否则，用户可能会在使用您的应用程序时遇到问题请注意，第一个建议是最好的，因为其他建议可能仍然容易受到注册表和用户站点包中的非标准路径的影响。</p>
<p>在 3.6 版更改:</p>
<ul>
<li><p>添加<code>._pth</code>文件支持并从<code>pyvenv.cfg</code>中删除<code>applocal</code>选项</p>
</li>
<li><p>当直接与可执行文件相邻时，添加<code>pythonXX.zip</code>作为潜在的<code>landmark</code>。</p>
</li>
</ul>
<p>3.6 版后已移除:<br>在<code>Modules</code>（不是<code>PythonPath</code>）下的注册表中指定的模块可以通过以下方式导入<code>importlib.machinery.WindowsRegistryFinder</code>。在Windows上，此查找程序在3.6.0及更早版本的可用，但可能需要在将来显式添加到<code>sys.meta_path</code></p>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/multiple-remote-push.html" itemprop="url">Multiple Remote Push</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-17T04:32:00.000Z" itemprop="datePublished">Jun 17 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            4 minutes read (About 608 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="One-By-One-to-Push"><a href="#One-By-One-to-Push" class="headerlink" title="One By One to Push"></a>One By One to Push</h2><ul>
<li><p>Adds Remote</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ git remote add github git@github.com:O70/Notes.git</span><br><span class="line">$ git remote add gitee git@gitee.com:Guiwang/Notes.git</span><br><span class="line">$ git remote add gitlab git@gitlab.com:O70/Notes.git</span><br><span class="line">$ git remote add bitbucket git@bitbucket.org:O70/Notes.git</span><br><span class="line"></span><br><span class="line">$ git push -u github master</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>.git/config</code></p>
<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">[remote &quot;github&quot;]</span><br><span class="line">	url = git@github.com:O70/Notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/github/*</span><br><span class="line">[branch &quot;master&quot;]</span><br><span class="line">	remote = github</span><br><span class="line">	merge = refs/heads/master</span><br><span class="line">[remote &quot;gitee&quot;]</span><br><span class="line">	url = git@gitee.com:Guiwang/Notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/gitee/*</span><br><span class="line">[remote &quot;gitlab&quot;]</span><br><span class="line">	url = git@gitlab.com:O70/notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/gitlab/*</span><br><span class="line">[remote &quot;bitbucket&quot;]</span><br><span class="line">	url = git@bitbucket.org:O70/notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/bitbucket/*</span><br></pre></td></tr></table></figure>
</li>
<li><p>Pull</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ git pull github master</span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git pull gitee master</span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git pull gitlab master</span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git pull bitbucket master</span><br></pre></td></tr></table></figure>
</li>
<li><p>Push</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ git push github master</span><br><span class="line">$ git push gitee master</span><br><span class="line">$ git push gitlab master</span><br><span class="line">$ git push bitbucket master</span><br><span class="line"></span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git push github master ; git push gitee master ; git push gitlab master ; git push bitbucket master</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="One-time-Push"><a href="#One-time-Push" class="headerlink" title="One-time Push"></a>One-time Push</h2><ul>
<li><p>Clear <code>.git/config</code> Remote</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ git remote remove github</span><br><span class="line">$ git remote remove gitee</span><br><span class="line">$ git remote remove gitlab</span><br><span class="line">$ git remote remove bitbucket</span><br><span class="line"></span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git remote remove github ; git remote remove gitee ; git remote remove gitlab ; git remote remove bitbucket</span><br></pre></td></tr></table></figure>
</li>
<li><p>Add <code>origin</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ git remote add origin git@github.com:O70/Notes.git</span><br><span class="line">$ git push -u origin master</span><br></pre></td></tr></table></figure>
</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p><strong><code>origin</code>作为主<code>upstream</code>, 主要用于<code>git pull</code></strong></p>
</blockquote>
<ul>
<li><p>Adds Remote</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ git remote add mp git@github.com:O70/Notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add mp git@gitee.com:Guiwang/Notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add mp git@gitlab.com:O70/notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add mp git@bitbucket.org:O70/notes.git</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>.git/config</code></p>
<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">[remote &quot;origin&quot;]</span><br><span class="line">	url = git@github.com:O70/Notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/origin/*</span><br><span class="line">[branch &quot;master&quot;]</span><br><span class="line">	remote = origin</span><br><span class="line">	merge = refs/heads/master</span><br><span class="line">[remote &quot;mp&quot;]</span><br><span class="line">	url = git@github.com:O70/Notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/mp/*</span><br><span class="line">	url = git@gitee.com:Guiwang/Notes.git</span><br><span class="line">	url = git@gitlab.com:O70/notes.git</span><br><span class="line">	url = git@bitbucket.org:O70/notes.git</span><br></pre></td></tr></table></figure>
</li>
<li><p>Pull</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ git pull origin master</span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git pull</span><br></pre></td></tr></table></figure>
</li>
<li><p>Push</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git push mp master</span><br></pre></td></tr></table></figure>
</li>
</ul>
<blockquote>
<p>Push结束后, 会出现下图问题:</p>
<p><img src="./imgs/git-0001.png" alt=""></p>
</blockquote>
<ul>
<li>Sync <code>origin</code> and <code>mp</code><figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git remote update</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="One-time-Push-for-origin"><a href="#One-time-Push-for-origin" class="headerlink" title="One-time Push for origin"></a>One-time Push for <code>origin</code></h2><ul>
<li><p>Remove <code>mp</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git remote remove mp</span><br></pre></td></tr></table></figure>
</li>
<li><p>Adds Remote</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add origin git@gitee.com:Guiwang/Notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add origin git@gitlab.com:O70/notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add origin git@bitbucket.org:O70/notes.git</span><br><span class="line"></span><br><span class="line"><span class="hljs-comment">#!! or</span></span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --add origin git@gitee.com:Guiwang/Notes.git ; git remote <span class="hljs-built_in">set</span>-url --add origin git@gitlab.com:O70/notes.git ; git remote <span class="hljs-built_in">set</span>-url --add origin git@bitbucket.org:O70/notes.git</span><br></pre></td></tr></table></figure>
</li>
<li><p>Delete Remote</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --delete origin git@gitee.com:Guiwang/Notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --delete origin git@gitlab.com:O70/notes.git</span><br><span class="line">$ git remote <span class="hljs-built_in">set</span>-url --delete origin git@bitbucket.org:O70/notes.git</span><br></pre></td></tr></table></figure>
</li>
<li><p><code>.git/config</code></p>
<figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">[remote &quot;origin&quot;]</span><br><span class="line">	url = git@github.com:O70/Notes.git</span><br><span class="line">	fetch = +refs/heads/*:refs/remotes/origin/*</span><br><span class="line">	url = git@gitee.com:Guiwang/Notes.git</span><br><span class="line">	url = git@gitlab.com:O70/notes.git</span><br><span class="line">	url = git@bitbucket.org:O70/notes.git</span><br><span class="line">[branch &quot;master&quot;]</span><br><span class="line">	remote = origin</span><br><span class="line">	merge = refs/heads/master</span><br></pre></td></tr></table></figure>
</li>
<li><p>Pull</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git pull origin master</span><br></pre></td></tr></table></figure>
</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p><strong><code>git pull</code>有可能会出问题, 只会<code>pull</code>第一个<code>url</code>的, 而且可能还会冲突</strong></p>
</blockquote>
<ul>
<li>Push<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git push origin master</span><br></pre></td></tr></table></figure>
</li>
</ul>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/github-repositories.html" itemprop="url">GitHub Repositories</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-17T04:32:00.000Z" itemprop="datePublished">Jun 17 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            a few seconds read (About 41 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="GitHub-Repositories"><a href="#GitHub-Repositories" class="headerlink" title="GitHub Repositories"></a>GitHub Repositories</h2><ul>
<li style="list-style: none"><input type="checkbox"> MaLei666/Spider</li>
<li style="list-style: none"><input type="checkbox"> cool-RR/PySnooper</li>
<li style="list-style: none"><input type="checkbox"> FiloSottile/mkcert</li>
<li style="list-style: none"><input type="checkbox"> google/jsonnet</li>
<li style="list-style: none"><input type="checkbox"> doocs/advanced-java</li>
<li style="list-style: none"><input type="checkbox"> pomber/git-history</li>
<li style="list-style: none"><input type="checkbox"> HeZhang1994/weibo-crawler</li>
<li style="list-style: none"><input type="checkbox"> jackfrued/Python-100-Days</li>
<li style="list-style: none"><input type="checkbox"> zhangslob/awesome_crawl</li>
<li style="list-style: none"><input type="checkbox"> akretion/ak-odoo-incubator</li>
<li style="list-style: none"><input type="checkbox"> jupyter/notebook</li>
<li><p>[ ] adoyle-h/lobash</p>
</li>
<li><p>[ ] njleonzhang/vue-data-tables</p>
</li>
<li style="list-style: none"><input type="checkbox"> coderitual/jtop</li>
</ul>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/duplicating-a-repository.html" itemprop="url">Duplicating a repository</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-16T12:28:00.000Z" itemprop="datePublished">Jun 16 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            a minute read (About 150 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <p><a href="https://help.github.com/en/articles/duplicating-a-repository#mirroring-a-repository-that-contains-git-large-file-storage-objects" target="_blank" rel="noopener">Duplicating a repository</a></p>
<p>To duplicate a repository without forking it, you can run a special clone command, then mirror-push to the new repository.</p>
<p>Before you can duplicate a repository and push to your new copy, or mirror, of the repository, you must create the new repository on GitHub. In these examples, <code>exampleuser/new-repository</code> or <code>exampleuser/mirrored</code> are the mirrors.</p>
<h2 id="Mirroring-a-repository"><a href="#Mirroring-a-repository" class="headerlink" title="Mirroring a repository"></a>Mirroring a repository</h2><ol>
<li><p>Open Terminal.</p>
</li>
<li><p>Create a bare clone of the repository.</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ git <span class="hljs-built_in">clone</span> --bare https://github.com/exampleuser/old-repository.git</span><br></pre></td></tr></table></figure>
</li>
<li><p>Mirror-push to the new repository.</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="hljs-built_in">cd</span> old-repository.git</span><br><span class="line">$ git push --mirror https://github.com/exampleuser/new-repository.git</span><br></pre></td></tr></table></figure>
</li>
<li><p>Remove the temporary local repository you created in step 1.</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="hljs-built_in">cd</span> ..</span><br><span class="line">$ rm -rf old-repository.git</span><br></pre></td></tr></table></figure>
</li>
</ol>
<h2 id="Mirroring-a-repository-that-contains-Git-Large-File-Storage-objects"><a href="#Mirroring-a-repository-that-contains-Git-Large-File-Storage-objects" class="headerlink" title="Mirroring a repository that contains Git Large File Storage objects"></a>Mirroring a repository that contains Git Large File Storage objects</h2>
    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/pip-command.html" itemprop="url">pip command</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-10T08:10:00.000Z" itemprop="datePublished">Jun 10 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            a minute read (About 173 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="Command"><a href="#Command" class="headerlink" title="Command"></a>Command</h2><figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">$ pip --version</span><br><span class="line"></span><br><span class="line">$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py   <span class="hljs-comment">#! 下载安装脚本</span></span><br><span class="line">$ sudo python get-pip.py    <span class="hljs-comment">#! 运行安装脚本</span></span><br><span class="line"></span><br><span class="line">$ pip --version</span><br><span class="line">$ pip --<span class="hljs-built_in">help</span></span><br><span class="line"></span><br><span class="line">$ pip install -U pip</span><br><span class="line"><span class="hljs-comment"># or</span></span><br><span class="line">$ sudo easy_install --upgrade pip</span><br></pre></td></tr></table></figure>
<ul>
<li><p>Install package</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ pip install SomePackage              <span class="hljs-comment">#! 最新版本</span></span><br><span class="line">$ pip install SomePackage==1.0.4       <span class="hljs-comment">#! 指定版本</span></span><br><span class="line">$ pip install <span class="hljs-string">'SomePackage&gt;=1.0.4'</span>     <span class="hljs-comment">#! 最小版本</span></span><br><span class="line"></span><br><span class="line">$ pip install Django==1.7</span><br><span class="line"></span><br><span class="line">$  pip install --proxy http://proxy_server:8080 requests <span class="hljs-comment">#! 使用代理</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>Upgrade package</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ pip install --upgrade SomePackage</span><br></pre></td></tr></table></figure>
</li>
</ul>
<p>升级指定的包，通过使用==, &gt;=, &lt;=, &gt;, &lt; 来指定一个版本号。</p>
<ul>
<li><p>Uninstall package</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ pip uninstall SomePackage</span><br></pre></td></tr></table></figure>
</li>
<li><p>Search package</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ pip search SomePackage</span><br></pre></td></tr></table></figure>
</li>
<li><p>Show pakcage info</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ pip show</span><br><span class="line">$ pip show requests</span><br><span class="line">$ pip show -f requests</span><br></pre></td></tr></table></figure>
</li>
<li><p>List package</p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ pip list</span><br><span class="line">$ pip list -o <span class="hljs-comment">#! 查看可升级的包</span></span><br></pre></td></tr></table></figure>
</li>
<li><p><code>requirements.txt</code></p>
<figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">$ pip freeze &gt; requirements.txt</span><br><span class="line"></span><br><span class="line">$ pip install -r requirements.txt</span><br><span class="line"></span><br><span class="line">$ pip install --proxy http://proxy_server:8080 -r requirements.txt</span><br></pre></td></tr></table></figure>
</li>
</ul>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/web-crawler.html" itemprop="url">Web Crawler</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-10T07:10:00.000Z" itemprop="datePublished">Jun 10 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            a few seconds read (About 7 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="Install-Dependency-Libraries"><a href="#Install-Dependency-Libraries" class="headerlink" title="Install Dependency Libraries"></a>Install Dependency Libraries</h2><figure class="highlight sh hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ pip install requests</span><br></pre></td></tr></table></figure>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/朱子家訓.html" itemprop="url">朱子家訓</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-10T06:10:00.000Z" itemprop="datePublished">Jun 10 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            5 minutes read (About 756 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="概述"><a href="#概述" class="headerlink" title="概述"></a>概述</h2><p>《朱子家訓》又名《朱子治家格言》、《朱柏廬治家格言》，是以家庭道德為主的啟蒙教材。《朱子家訓》僅524字，精闢地闡明了修身治家之道，是一篇家教名著。其中，許多內容繼承了中國傳統文化的優秀特點，比如尊敬師長，勤儉持家，鄰里和睦等，在今天仍然有現實意義。</p>
<h2 id="全文"><a href="#全文" class="headerlink" title="全文"></a>全文</h2><figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><span class="line">黎明即起，灑掃庭除，要內外整潔；</span><br><span class="line">既昏便息，關鎖門戶，必親自檢點。</span><br><span class="line">一粥一飯，當思來處不易；</span><br><span class="line">半絲半縷，恆念物力維艱。</span><br><span class="line">宜未雨而綢繆，毋臨渴而掘井。</span><br><span class="line">自奉必須儉約，宴客切勿流連。</span><br><span class="line">器具質而潔，瓦缶勝金玉；</span><br><span class="line">飲食約而精，園蔬愈珍饈。</span><br><span class="line">勿營華屋，勿謀良田。</span><br><span class="line">三姑六婆，實淫盜之媒；</span><br><span class="line">婢美妾嬌，非閨房之福。</span><br><span class="line">僮僕勿用俊美，妻妾切忌艷裝。</span><br><span class="line">祖宗雖遠，祭祀不可不誠；</span><br><span class="line">子孫雖愚，經書不可不讀。</span><br><span class="line">居身務期質樸，教子要有義方。</span><br><span class="line">勿貪意外之財，勿飲過量之酒。</span><br><span class="line">與肩挑貿易，毋佔便宜；</span><br><span class="line">見貧苦親鄰，須加溫卹。</span><br><span class="line">刻薄成家，理無久享；</span><br><span class="line">倫常乖舛，立見消亡。</span><br><span class="line">兄弟叔侄，需分多潤寡；</span><br><span class="line">長幼內外，宜法肅辭嚴。</span><br><span class="line">聽婦言乖骨肉，豈是丈夫？</span><br><span class="line">重資財薄父母，不成人子。</span><br><span class="line">嫁女擇佳婿，毋索重聘；</span><br><span class="line">娶媳求淑女，勿計厚奩。</span><br><span class="line">見富貴而生諂容者最可恥；</span><br><span class="line">遇貧窮而作驕態者賤莫甚。</span><br><span class="line">居家戒爭訟，訟則終兇；</span><br><span class="line">處世戒多言，言多必失。</span><br><span class="line">勿恃勢力而凌逼孤寡，毋貪口腹而恣殺生禽。</span><br><span class="line">乖僻自是，悔誤必多；</span><br><span class="line">頹惰自甘，家道難成。</span><br><span class="line">狎昵惡少，久必受其累；</span><br><span class="line">屈志老成，急則可相依。</span><br><span class="line">輕聽發言，安知非人之譖訴，當忍耐三思；</span><br><span class="line">因事相爭，焉知非我之不是，需平心暗想。</span><br><span class="line">施惠無念，受恩莫忘。</span><br><span class="line">凡事當留餘地，得意不宜再往。</span><br><span class="line">人有喜慶，不可生嫉妒心；</span><br><span class="line">人有禍患，不可生喜幸心。</span><br><span class="line">善欲人見，不是真善；</span><br><span class="line">惡恐人知，便是大惡。</span><br><span class="line">見色而起淫心，報在妻女；</span><br><span class="line">匿怨而用暗箭，禍延子孫。</span><br><span class="line">家門和順，雖饔飧不繼，亦有餘歡；</span><br><span class="line">國課早完，即囊橐無餘，自得至樂。</span><br><span class="line">讀書志在聖賢，非徒科第；</span><br><span class="line">為官心存君國，豈計身家？</span><br><span class="line">守分安命，順時聽天。</span><br><span class="line">為人若此，庶乎近焉。</span><br></pre></td></tr></table></figure>

    
    </div>
    
    
</article>





    
        <article class="article content gallery" itemscope="" itemprop="blogPost">
    <h1 class="article-title is-size-3 is-size-4-mobile" itemprop="name">
        
            <a href="/documents/others/弟子規.html" itemprop="url">弟子規</a>
        
    </h1>
    <div class="article-meta columns is-variable is-1 is-multiline is-mobile is-size-7-mobile">
        <span class="column is-narrow">
            <time datetime="2019-06-10T05:10:00.000Z" itemprop="datePublished">Jun 10 2019</time>
        </span>
        
        
        <span class="column is-narrow">
            
            
            8 minutes read (About 1217 words)
        </span>
        
    </div>
    <div class="article-entry is-size-6-mobile" itemprop="articleBody">
    
        <h2 id="概述"><a href="#概述" class="headerlink" title="概述"></a>概述</h2><p>《弟子規》原名《訓蒙文》，為清朝康熙年間秀才<a href="https://baike.baidu.com/item/李毓秀/10781913" target="_blank" rel="noopener">李毓秀</a>所著。以三字一句、兩句一韻編纂而成。詳述了為人子弟在家、出外、待人接物、求學應有的禮儀與規範，是啟蒙養正，教育子弟養成忠厚仁愛道德風尚的經典教材。</p>
<h2 id="內容"><a href="#內容" class="headerlink" title="內容"></a>內容</h2><figure class="highlight plain hljs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br></pre></td><td class="code"><pre><span class="line">Title: 總敘</span><br><span class="line">弟子規 聖人訓 首孝弟 次謹信</span><br><span class="line">泛愛眾 而親仁 有餘力 則學文</span><br><span class="line"></span><br><span class="line">Title: 入則孝</span><br><span class="line">父母呼 應勿緩 父母命 行勿懶</span><br><span class="line">父母教 須敬聽 父母責 須順承</span><br><span class="line">冬則溫 夏則凊 晨則省 昏則定</span><br><span class="line">出必告 反必面 居有常 業無變</span><br><span class="line">事雖小 勿擅為 苟擅為 子道虧</span><br><span class="line">物雖小 勿私藏 苟私藏 親心傷</span><br><span class="line">親所好 力為具 親所惡 謹為去</span><br><span class="line">身有傷 貽親憂 德有傷 貽親羞</span><br><span class="line">親愛我 孝何難 親憎我 孝方賢</span><br><span class="line">親有過 諫使更 怡吾色 柔吾聲</span><br><span class="line">諫不入 悅複諫 號泣隨 撻無怨</span><br><span class="line">親有疾 藥先嘗 晝夜侍 不離床</span><br><span class="line">喪三年 常悲咽 居處變 酒肉絕</span><br><span class="line">喪盡禮 祭盡誠 事死者 如事生</span><br><span class="line"></span><br><span class="line">Title: 出則弟</span><br><span class="line">兄道友 弟道恭 兄弟睦 孝在中</span><br><span class="line">財物輕 怨何生 言語忍 忿自泯</span><br><span class="line">或飲食 或坐走 長者先 幼者後</span><br><span class="line">長呼人 即代叫 人不在 己即到</span><br><span class="line">稱尊長 勿呼名 對尊長 勿見能</span><br><span class="line">路遇長 疾趨揖 長無言 退恭立</span><br><span class="line">騎下馬 乘下車 過猶待 百步余</span><br><span class="line">長者立 幼勿坐 長者坐 命乃坐</span><br><span class="line">尊長前 聲要低 低不聞 卻非宜</span><br><span class="line">進必趨 退必遲 問起對 視勿移</span><br><span class="line">事諸父 如事父 事諸兄 如事兄</span><br><span class="line"></span><br><span class="line">Title: 謹</span><br><span class="line">朝起早 夜眠遲 老易至 惜此時</span><br><span class="line">晨必盥 兼漱口 便溺回 輒淨手</span><br><span class="line">冠必正 紐必結 襪與履 俱緊切</span><br><span class="line">置冠服 有定位 勿亂頓 致污穢</span><br><span class="line">衣貴潔 不貴華 上循分 下稱家</span><br><span class="line">對飲食 勿揀擇 食適可 勿過則</span><br><span class="line">年方少 勿飲酒 飲酒醉 最為醜</span><br><span class="line">步從容 立端正 揖深圓 拜恭敬</span><br><span class="line">勿踐閾 勿跛倚 勿箕踞 勿搖髀</span><br><span class="line">緩揭簾 勿有聲 寬轉彎 勿觸棱</span><br><span class="line">執虛器 如執盈 入虛室 如有人</span><br><span class="line">事勿忙 忙多錯 勿畏難 勿輕略</span><br><span class="line">鬥鬧場 絕勿近 邪僻事 絕勿問</span><br><span class="line">將入門 問孰存 將上堂 聲必揚</span><br><span class="line">人問誰 對以名 吾與我 不分明</span><br><span class="line">用人物 須明求 倘不問 即為偷</span><br><span class="line">借人物 及時還 後有急 借不難</span><br><span class="line"></span><br><span class="line">Title: 信</span><br><span class="line">凡出言 信為先 詐與妄 奚可焉</span><br><span class="line">話說多 不如少 惟其是 勿佞巧</span><br><span class="line">奸巧語 穢汙詞 市井氣 切戒之</span><br><span class="line">見未真 勿輕言 知未的 勿輕傳</span><br><span class="line">事非宜 勿輕諾 苟輕諾 進退錯</span><br><span class="line">凡道字 重且舒 勿急疾 勿模糊</span><br><span class="line">彼說長 此說短 不關己 莫閑管</span><br><span class="line">見人善 即思齊 縱去遠 以漸躋</span><br><span class="line">見人惡 即內省 有則改 無加警</span><br><span class="line">唯德學 唯才藝 不如人 當自礪</span><br><span class="line">若衣服 若飲食 不如人 勿生戚</span><br><span class="line">聞過怒 聞譽樂 損友來 益友卻</span><br><span class="line">聞譽恐 聞過欣 直諒士 漸相親</span><br><span class="line">無心非 名為錯 有心非 名為惡</span><br><span class="line">過能改 歸於無 倘掩飾 增一辜</span><br><span class="line"></span><br><span class="line">Title: 泛愛眾</span><br><span class="line">凡是人 皆須愛 天同覆 地同載</span><br><span class="line">行高者 名自高 人所重 非貌高</span><br><span class="line">才大者 望自大 人所服 非言大</span><br><span class="line">己有能 勿自私 人所能 勿輕訾</span><br><span class="line">勿諂富 勿驕貧 勿厭故 勿喜新</span><br><span class="line">人不閑 勿事攪 人不安 勿話擾</span><br><span class="line">人有短 切莫揭 人有私 切莫說</span><br><span class="line">道人善 即是善 人知之 愈思勉</span><br><span class="line">揚人惡 即是惡 疾之甚 禍且作</span><br><span class="line">善相勸 德皆建 過不規 道兩虧</span><br><span class="line">凡取與 貴分曉 與宜多 取宜少</span><br><span class="line">將加人 先問己 己不欲 即速已</span><br><span class="line">恩欲報 怨欲忘 報怨短 報恩長</span><br><span class="line">待婢僕 身貴端 雖貴端 慈而寬</span><br><span class="line">勢服人 心不然 理服人 方無言</span><br><span class="line"></span><br><span class="line">Title: 親仁</span><br><span class="line">同是人 類不齊 流俗眾 仁者希</span><br><span class="line">果仁者 人多畏 言不諱 色不媚</span><br><span class="line">能親仁 無限好 德日進 過日少</span><br><span class="line">不親仁 無限害 小人進 百事壞</span><br><span class="line"></span><br><span class="line">Title: 余力學文</span><br><span class="line">不力行 但學文 長浮華 成何人</span><br><span class="line">但力行 不學文 任己見 昧理真</span><br><span class="line">讀書法 有三到 心眼口 信皆要</span><br><span class="line">方讀此 勿慕彼 此未終 彼勿起</span><br><span class="line">寬為限 緊用功 工夫到 滯塞通</span><br><span class="line">心有疑 隨劄記 就人問 求確義</span><br><span class="line">房室清 牆壁淨 幾案潔 筆硯正</span><br><span class="line">墨磨偏 心不端 字不敬 心先病</span><br><span class="line">列典籍 有定處 讀看畢 還原處</span><br><span class="line">雖有急 卷束齊 有缺壞 就補之</span><br><span class="line">非聖書 屏勿視 蔽聰明 壞心志</span><br><span class="line">勿自暴 勿自棄 聖與賢 可馴致</span><br></pre></td></tr></table></figure>

    
    </div>
    
    
</article>





    
    
        
<nav class="pagination is-centered is-rounded" role="navigation" aria-label="pagination">
    <div class="pagination-previous">
        <a href="/">Prev</a>
    </div>
    <div class="pagination-next">
        <a href="/page/3/">Next</a>
    </div>
    <ul class="pagination-list is-hidden-mobile">
        
        <li><a class="pagination-link" href="/">1</a></li>
        
        <li><a class="pagination-link is-current" href="/page/2/">2</a></li>
        
        <li><a class="pagination-link" href="/page/3/">3</a></li>
        
        <li><span class="pagination-ellipsis">&hellip;</span></li>
        
        <li><a class="pagination-link" href="/page/6/">6</a></li>
        
    </ul>
</nav>

    
    </div>
</section>
    <footer class="footer">
    <div class="container">
        <div class="columns content">
            <div class="column is-narrow has-text-centered">
                Copyright &copy; 2019 鬼王&nbsp;
                <!-- Powered by <a href="https://github.com/O70" target="_blank">O70</a> -->
            </div>
            <div class="column is-hidden-mobile"></div>

            
            <div class="column is-narrow">
                <div class="columns is-mobile is-multiline is-centered">
                
                    
                <a class="column is-narrow has-text-black" title="京ICP备19029828号" href="http://www.miitbeian.gov.cn">
                    
                    京ICP备19029828号
                    
                </a>
                
                    
                <a class="column is-narrow has-text-black" title="GitHub" href="https://github.com/O70">
                    
                    GitHub
                    
                </a>
                
                </div>
            </div>
            
            

        </div>
    </div>
</footer>

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment-with-locales.min.js"></script>

<!-- test if the browser is outdated -->
<div id="outdated">
    <h6>Your browser is out-of-date!</h6>
    <p>Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Update my browser now </a></p>
    <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.5/outdatedbrowser.min.js"></script>
<script>
    $(document).ready(function () {
        // plugin function, place inside DOM ready function
        outdatedBrowser({
            bgColor: '#f25648',
            color: '#ffffff',
            lowerThan: 'flex'
        })
    });
</script>

<script>
    window.FontAwesomeConfig = {
        searchPseudoElements: true
    }
    moment.locale("en-AU");
</script>



<script src="/js/script.js"></script>


    
    <div class="searchbox ins-search">
    <div class="searchbox-mask"></div>
    <div class="searchbox-container ins-search-container">
        <div class="searchbox-input-wrapper">
            <input type="text" class="searchbox-input ins-search-input" placeholder="Type something...">
            <span class="searchbox-close ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="searchbox-result-wrapper ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
    (function (window) {
        var INSIGHT_CONFIG = {
            TRANSLATION: {
                POSTS: 'Posts',
                PAGES: 'Pages',
                CATEGORIES: 'Categories',
                TAGS: 'Tags',
                UNTITLED: '(Untitled)',
            },
            CONTENT_URL: '/content.json',
        };
        window.INSIGHT_CONFIG = INSIGHT_CONFIG;
    })(window);
</script>
<script src="/js/insight.js"></script>
    
</body>
</html>
